﻿<p>
This example demonstrates how to use the client-side templates feature in order to display checkboxes in Telerik Grid for ASP.NET MVC.
</p>
<pre class="prettyprint">
&lt;% Html.Telerik().Grid(Model)
        .Name("Grid")
        .Columns(columns =&gt;
        {
            columns.Bound(o =&gt; o.OrderID)
                   <em>.ClientTemplate("&lt;input type='checkbox' name='checkedRecords' value='&lt;#= OrderID #&gt;' /&gt;")</em>
                   .Title("Check")
                   .Width(50)
                   .HtmlAttributes(new { style = "text-align:center" });
            
            columns.Bound(o =&gt; o.OrderID).Width(100);
            columns.Bound(o =&gt; o.Customer.ContactName).Width(200);
            columns.Bound(o =&gt; o.ShipAddress);
            columns.Bound(o =&gt; o.OrderDate).Format("{0:MM/dd/yyyy}").Width(120);
        })
        .DataBinding(dataBinding =&gt; dataBinding.Ajax()
                .Select("_CheckBoxesAjax", "Grid"))
        .Scrollable()
        .Pageable()
        .Render();
%&gt;

</pre>